package com.rayo.accesscontrollercopy.model.db.dao;


import com.rayo.accesscontrollercopy.model.db.bean.CalendarData;

import java.util.Date;
import java.util.List;


/**
 * Created by yanghaojie on 16/7/27.
 */
public interface CalendarDao {
    List<CalendarData> findAll();

    CalendarData findByIdAndCal(int calid, Date cal);

    List<CalendarData> findByCalId(int calid);

    void addAll(List<CalendarData> calendar);

    void addCalendar(CalendarData calendar);

    void updateAll(List<CalendarData> calendar);

    void updateCalendar(CalendarData calendar);

    void deleteAll();

    void deleteByCalId(int calid);
}
